# -*- coding:utf-8 -*-
"""
@author: 
@file: 02.豆瓣电影.py
@time: 2023/12/15 23:58
@desc: 
"""
import requests
import json


res = requests.get(
    url='https://movie.douban.com/j/search_subjects?type=movie&tag=%E8%B1%86%E7%93%A3%E9%AB%98%E5%88%86&page_limit=50&page_start=0',
    headers={
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'
    }
)
data_dict = json.loads(res.text)
data_list = data_dict['subjects']
for item in data_list:
    print(item['title'])